﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using Economo.Services.BusinessEntities;

namespace Economo.Services.MessageContracts
{    
    [MessageContract]
    public class GetCreditCardsRequest
    {
        [MessageBodyMember]
        public Byte BankId { get; set; }
    }
    [MessageContract]
    public class GetCreditCardsResponse
    {
        [MessageBodyMember]
        public List<CreditCard> Cards { get; set; }
    }

    [MessageContract]
    public class UpdateCreditCardRequest
    {
        [MessageBodyMember]
        public CreditCard Card { get; set; }
    }

    [MessageContract]
    public class DeleteCreditCardByIdRequest
    {
        [MessageBodyMember]
        public byte BankId { get; set; }
        [MessageBodyMember]
        public byte CardId { get; set; }

    }

    [MessageContract]
    public class DeleteCreditCardRequest
    {
        [MessageBodyMember]
        public CreditCard Card { get; set; }
    }

    [MessageContract]
    public class InsertCreditCardRequest
    {
        [MessageBodyMember]
        public CreditCard Card { get; set; }
    }
    [MessageContract]
    public class InsertCreditCardResponse
    {
        [MessageBodyMember]
        public Byte CardId { get; set; }
    }
}
